using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace wsPakkeshop
{
    public partial class ViewLog : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            monit.util.logger.MemoryLogger ml = (monit.util.logger.MemoryLogger)monit.util.logger.LogObjectServer.getServer().CurrentLogger;
            this.Response.Clear();
            this.Response.ContentType = "text/html";

            this.Response.Output.WriteLine("<html><head><title>SIS log</title></head><body>");

            foreach (string s in ml.getMessages())
            {
                this.Response.Output.WriteLine( s );
                this.Response.Output.WriteLine( "<br>" );
                
            }
            this.Response.Output.WriteLine("</body></html>");
        }

        protected override void OnInit(EventArgs e)
        {
            InitializeComponent();
            base.OnInit(e);
        }

        private void InitializeComponent()
        {
            this.Load += new System.EventHandler(this.Page_Load);
        }
    }
    
   
}
